<commit_before># -*- coding: utf-8 -*-
from south.v2 import SchemaMigration


class Migration(SchemaMigration):
    no_dry_run = True

    def forwards(self, orm):
        orm.Event.filter(recurrence_week_rank=4).update(recurrence_week_rank=-1)

    def backwards(self, orm):
        orm.Event.filter(recurrence_week_rank=-1).update(recurrence_week_rank=4)

    models = {
        u'agenda.event': {
            'Meta': {'ordering': "('start_datetime', 'end_datetime', 'title')", 'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['agenda.EventType']"}),
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': u"orm['agenda.Event']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),<commit_msg>agenda: fix migration 0003<commit_after># -*- coding: utf-8 -*-
from south.v2 import SchemaMigration


class Migration(SchemaMigration):
    no_dry_run = True

    def forwards(self, orm):
        orm.Event.objects.filter(recurrence_week_rank=4).update(recurrence_week_rank=-1)

    def backwards(self, orm):
        orm.Event.objects.filter(recurrence_week_rank=-1).update(recurrence_week_rank=4)

    models = {
        u'agenda.event': {
            'Meta': {'ordering': "('start_datetime', 'end_datetime', 'title')", 'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['agenda.EventType']"}),
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': u"orm['agenda.Event']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
{'fraction_non_alphanumeric': 0.24243158149673044, 'fraction_numerical': 0.006781302978929523, 'mean_word_length': 4.098765432098766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3626936', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1346, 'n_words': 232}